package client.states;

import it.randomtower.engine.World;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.effects.ColorEffect;
import org.newdawn.slick.gui.AbstractComponent;
import org.newdawn.slick.gui.ComponentListener;
import org.newdawn.slick.state.StateBasedGame;

public class ModeSelectState extends World implements ComponentListener {

	private UnicodeFont font = null, smallFont = null;

	public ModeSelectState(int id) {
		super(id);
	}

	@Override
	public void init(GameContainer container, StateBasedGame game) throws SlickException {
		super.init(container, game);
	}

	@Override
	public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
		super.render(container, game, g);
	}

	@SuppressWarnings("unchecked")
	private void loadFont() {
		try {
			font = new UnicodeFont("data/fonts/capture.ttf", 30, false, false);
			font.getEffects().add(new ColorEffect(java.awt.Color.white));
			font.addAsciiGlyphs();
			font.loadGlyphs();

			smallFont = new UnicodeFont("data/fonts/capture.ttf", 16, false, false);
			smallFont.getEffects().add(new ColorEffect(java.awt.Color.white));
			smallFont.addAsciiGlyphs();
			smallFont.loadGlyphs();
		} catch (SlickException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void componentActivated(AbstractComponent source) {

	}

}
